Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: RemoveBlob / RemoveDescriptors #90

Merged
merged 1 commit into from
Oct 1, 2024
Merged

Conversation

dtrudg
Copy link
Member

@dtrudg dtrudg commented Sep 30, 2024

Implement RemoveBlob to remove a blob from the SIF without updating the RootIndex.

Implement RemoveDescriptors to remove specified descriptors from the SIF RootIndex, and clean up any orphan blobs.

In order that RemoveDescriptors can be run without requiring a temp dir, the update code is modified so that cache directory creation is lazy.

Fixes #84

@dtrudg dtrudg force-pushed the issue84 branch 2 times, most recently from 4a1bc4e to 4690c12 Compare September 30, 2024 15:12
@dtrudg dtrudg changed the title WIP: feat: RemoveBlob / RemoveDescriptors feat: RemoveBlob / RemoveDescriptors Sep 30, 2024
@dtrudg dtrudg marked this pull request as ready for review September 30, 2024 17:01
Copy link
Member

@tri-adam tri-adam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of questions/comments on this one, thanks!

pkg/sif/update.go Outdated Show resolved Hide resolved
pkg/sif/update.go Outdated Show resolved Hide resolved
@dtrudg dtrudg force-pushed the issue84 branch 3 times, most recently from 6c89e79 to 53645a6 Compare October 1, 2024 09:16
@dtrudg dtrudg requested a review from tri-adam October 1, 2024 09:18
Implement `RemoveBlob` to remove a blob from the SIF without updating
the RootIndex.

Implement `RemoveDescriptors` to remove specified descriptors from the
SIF RootIndex, and clean up any orphan blobs.

In order that `RemoveDescriptors` can be run without requiring a temp
dir, the update code is modified so that cache directory creation is
lazy.

Fixes sylabs#84
@dtrudg dtrudg merged commit a8566db into sylabs:main Oct 1, 2024
10 checks passed
@dtrudg dtrudg deleted the issue84 branch October 1, 2024 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RemoveBlob / RemoveDescriptors
2 participants